﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using BLL;
namespace ClassSystem
{
    public partial class ASPAdminkaoqin : System.Web.UI.Page
    {
        KQBLL bll = new KQBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Label1.Text = DateTime.Now.ToString();
            this.Repeater1.DataSource = bll.GetListAll();
            this.Repeater1.DataBind();
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string TheClass = this.TextBox1.Text.Trim();
            List<KQModel> list = bll.GetListAll().Where(a => a.TheClass == TheClass).ToList();
            if (list != null)
            {
                this.Repeater1.DataSource = list;
                this.Repeater1.DataBind();
            }
        }
    }
}